body {
  margin: 0;
  padding: 0;
  display: flex;

  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #050801;
  font-family: consolas;
}

@media screen and (max-width:600px) {
  body {

    flex-direction: column;
  }
}

a {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  color: #03e9f4;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-decoration: none;
  font-size: 24px;
  overflow: hidden;
  transition: .2s;
  margin: 20px 20px;
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.second {
  color: #4eff28;
}

.third {
  color: #f571fb
}
.second:hover {
  color: #050801;
  background-color: #4eff28;
  box-shadow: 0 0 10px #4eff28, 0 0 40px #4eff28, 0 0 80px #4eff28;
}

.third {
  color: #f571fb
}
.third:hover {
  color: #050801;
  background-color: #f571fb;
  box-shadow: 0 0 10px #f571fb, 0 0 40px #f571fb, 0 0 80px #f571fb;
}
a:hover {
  color: #050801;
  background-color: #03e9f4;
  box-shadow: 0 0 10px #03e9f4, 0 0 40px #03e9f4, 0 0 80px #03e9f4;
}

a span {
  position: absolute;
  display: block;
}

a.second span:nth-child(1) {
  background: linear-gradient(90deg, transparent, #4eff28);
}

a.third span:nth-child(1) {
  background: linear-gradient(90deg, transparent, #f571fb);
}

a span:nth-child(1) {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #03e9f4);
  animation: animate1 1s linear infinite;
}

@keyframes animate1 {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 100%;
  }
}

a.second span:nth-child(2) {
  background: linear-gradient(180deg, transparent, #4eff28);
}

a.third span:nth-child(2) {
  background: linear-gradient(180deg, transparent, #f571fb);
}

a span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #03e9f4);
  animation: animate2 1s linear infinite;
  animation-delay: .25s;
}

@keyframes animate2 {
  0% {
    top: -100%;
  }

  50%,
  100% {
    top: 100%;
  }
}

a.second span:nth-child(3) {
  background: linear-gradient(270deg, transparent, #4eff28);
}

a.third span:nth-child(3) {
  background: linear-gradient(270deg, transparent, #f571fb);
}

a span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #03e9f4);
  animation: animate3 1s linear infinite;
  animation-delay: .5s;
}

/* a:hover span:nth-child(3) {
  right: 100%;
  transition: 1s;
  transition-delay: .5s;
} */
@keyframes animate3 {
  0% {
    right: -100%;
  }

  50%,
  100% {
    right: 100%;
  }
}

a.second span:nth-child(4) {
  background: linear-gradient(360deg, transparent, #4eff28);
}

a.third span:nth-child(4) {
  background: linear-gradient(360deg, transparent, #f571fb);
}

a span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #03e9f4);
  animation: animate4 1s linear infinite;
  animation-delay: .75s;
}

@keyframes animate4 {
  0% {
    bottom: -100%;
  }

  50%,
  100% {
    bottom: 100%;
  }
}

/* a:hover span:nth-child(1) {
  left: 100%;
  transition: 1s;
} */

/* a span:nth-child(3) {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #03e9f4);
}

a:hover span:nth-child(3) {
  right: 100%;
  transition: 1s;
  transition-delay: .5s;
}





a:hover span:nth-child(4) {
  bottom: 100%;
  transition: 1s;
  transition-delay: .75s;
} */
